package mysqlCodeGen.gen.inner;

import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * 表信息
 *
 * @author alan
 * @date 2022/1/27 12:12
 */
@Data
public class TableInfo {
    private String col;
    private String name;
    private String comment;
    private String dataType;
    private String keyType;
    private String tableComment;

    public String getComment() {
        if (StringUtils.isEmpty(comment)) {
            return "";
        }
        return comment.trim().replace("\n", "");
    }

}